AI033
Modern Java in Action
The Modern Date and Time API
Learning Objectives
- Identify the design flaws and thread-safety issues of legacy java.util.Date and Calendar.
- Master the core immutable classes: LocalDate, LocalTime, and LocalDateTime.
- Manage global time requirements using ZonedDateTime, ZoneId, and OffsetDateTime.
- Perform precise time arithmetic using Period for dates and Duration for machine time.